package com.cmge.ad.service;

import com.cmge.ad.model.;
import com.cmge.ad.model.Store;
import com.cmge.ad.model.Menu;
import com.cmge.ad.util.Pager;

import javax.servlet.http.HttpServletRequest;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.HashMap;
import java.util.List;

/**
 * Created by yang on 2017-11-24.
 */
public interface StoreService {

    void getStoreList(Pager<Store> pager, HashMap<String, Object> paramMap);

    Store getStoreInfoById(String id);

    String getStoreId(Store );

    void deleteStoreById(Integer id);

    void syncStore(Integer id,Integer menuId,Integer hot);

    boolean existSync(Integer id);

    void add(Store store);

    void deleteSync(Store store);

    void updateStoreStatue(Store store);

    List<Store> getSyncList(int size);

    List<Menu> getChildMenu();

    void getList(Pager<> pager, HashMap<String, Object> paramMap, HttpServletRequest request);

    List<Menu> getAllMenu();


    String getId( );

    void sync(int size);

    int getStoreCount();

    void save( ) throws FileNotFoundException, IOException;

    int del(Integer id);

    void autoSync(int size);

    void refreshCache();
}
